// 6-1 输出学生成绩
#include <stdio.h>
int main() {
	int i,count;
	scanf("%d",&count);
	int icc[count];
	//输入数组 
	for ( i=0;i<count;i++) 
		scanf("%d",&icc[i]);
	int sum = 0, max = 0,min = 100;
	for ( i=0;i<count;i++) {
		int temp = icc[i];
		sum +=temp;
		//最大值 
		if(temp>max)max = temp;
		//最小值 
		if(temp<min)min = temp;
	}
	//格式化输出 
	printf("average = %.2f\n",sum*1.0/count);
	printf("max = %.2f\n",max*1.0);
	printf("min = %.2f\n",min*1.0);

	return 0;
}